import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';

//紧急返件回运
export const getListByPage = params => axios.post(`${SERVER.CLAIMDEALER}/rpQaUrgent/getListByPage`,  params );
//Excel导出
export const excelExport = params => {
  return axios({
    url:`${SERVER.CLAIMDEALER}/rPReturnWhFac/getListForExport`,
    method: 'get',
    params: params,
    responseType: 'blob'
  });
};
//编辑弹窗的保存
export const editSave = params => axios.post(`${SERVER.CLAIMDEALER}/rpQaUrgent/updateByPtId`,  params );
//修改回显
export const quyrpQaUrgent = (id, params) => axios.get(`${SERVER.CLAIMDEALER}/rpQaUrgent/selectById/${id}`, { params });
//预授权状态下拉
export const getPartType = (params) => axios.get(`${SERVER.CLAIMDEALER}/const/getBaseDataByType`, { params });
//导出
export const getListForExport = (params) => axios.post(`${SERVER.CLAIMDEALER}/rpQaUrgent/getListForExport`, params, {
  responseType: 'blob'
});
  //下载中心导出
  export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);